<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ include file="../../Include/Config.jsp"%>
<html>
<head>
    <script language = "JavaScript" src = "http://192.168.1.80:8080/oz51/ActiveX/ztransferx_browers.js"></script>
    <script language = "JavaScript" src = "http://192.168.1.80:8080/oz51/ActiveX/ozviewer_browers.js"></script>
    <script type="text/javascript">
	   //<![CDATA[
	     setInterval(function(){
	       try
	       {
	         opener.document;
	       }
	       catch (e)
	       {
	         this.close();
	       }
	     },1000)
	   //]]>
   </script>
    <script language ="JavaScript">
        function ZTInstallEndCommand_ZTransferX(param1,param2) {
            Create_Div();
            Initialize_OZViewer("OZReportViewer", "CLSID:0DEF32F8-170F-46f8-B1FF-4BF7443F5F25", "98%", "98%", "application/OZRViewer");
            Insert_OZViewer_Param("connection.servlet", "http://192.168.1.80:8080/oz51/server");
            Insert_OZViewer_Param("connection.reportname", "/OZwork/kict/report_mod.ozr");
            Insert_OZViewer_Param("viewer.isframe", "false");
            Insert_OZViewer_Param("viewer.namespace", "custom_namespace\\ozviewer");
            Insert_OZViewer_Param("connection.pcount", "6");
            Insert_OZViewer_Param("connection.args1", "coldiv=^");
            Insert_OZViewer_Param("connection.args2", "${reportValueForm.cvsData}");
            Insert_OZViewer_Param("connection.args3", "rowdiv=///");
            Insert_OZViewer_Param("connection.args4", "${reportValueForm.cvsData2}");
            Insert_OZViewer_Param("connection.args5", "coldiv2=^");
            Insert_OZViewer_Param("connection.args6", "rowdiv2=///");
            Start_OZViewer();
        }
    </script>
</head>

<body>
<div id = "InstallOZViewer">
    <script language = "JavaScript">
        Initialize_ZT("ZTransferX", "CLSID:C7C7225A-9476-47AC-B0B0-FF3B79D55E67", "0", "0", "http://192.168.1.80:8080/oz51/ActiveX/ZTransferX_2,2,2,0.cab#version=2,2,2,0");
        Insert_ZT_Param("download.Server", "http://192.168.1.80/oz51/ActiveX/");
        Insert_ZT_Param("download.Port", "8080");
        Insert_ZT_Param("download.Instruction", "ozrviewer.idf");
        Insert_ZT_Param("install.Base", "<PROGRAMS>/Forcs");
        Insert_ZT_Param("install.Namespace", "custom_namespace");
        Start_ZT();
    </script>
</div>
</body>
</html>